<?php if(!empty($user)){?>
<div class="col-728">
     <h3 class="pageTitle linebtm clearfix">
        <span class="fl"><?php echo $rear?"Infomation":"Thông tin cơ bản";?></span>
     </h3>
     <!--begin table 1 -->
     <div class="clearfix info-us">
        <?php if(!empty($thongbao)){
            echo $rear?$thongbao2:$thongbao;
        }?>
        <table cellpadding="8" cellspacing="0" border="0" width="100%" bgcolor="#f3f3f3">
           <tbody>
              <tr>
                 <td width="25%" class="label"><?php echo $rear?"Name":"Họ tên";?>:</td>
                 <td width="75%" class="Conts"><?php echo $user->name;?></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Gender":"Giới tính";?>:</td>
                 <td class="Conts">
                    <?php
                        $gen=$user->gender;
                        if($rear){
                            if($gen==1){
                                echo 'Male';
                            }else{
                                echo 'Female';
                            }
                        }else{
                            if($gen==1){
                                echo 'Nam';
                            }else{
                                echo 'Nữ';
                            }
                        }
                    ?>
                 </td>
              </tr>
              <tr>
                 <td class="label">Email</td>
                 <td class="Conts"><?php echo $user->email;?></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Birthday":"Ngày sinh";?>:</td>
                 <td class="Conts"><?php echo $user->birthday;?></td>
              </tr>
              <tr>
                 <td class="label">Skype:</td>
                 <td class="Conts"><?php echo $user->skype;?></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Language":"Ngôn ngữ";?>:</td>
                 <td class="Conts">Vietnamese</td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Payment":"Thanh toán";?>:</td>
                 <td class="Conts">
                    <table>
                       <tbody>
                          <tr style="width:100px;">
                             <td>Bank account number:</td>
                             <td>N/A</td>
                          </tr>
                          <tr>
                             <td>Bank:</td>
                             <td>N/A
                             </td>
                          </tr>
                          <tr>
                             <td>Bank account owner:</td>
                             <td>N/A</td>
                          </tr>
                       </tbody>
                    </table>
                 </td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Phone number":"Số điện thoại";?>:</td>
                 <td class="Conts"><?php echo $user->phone;?></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Address":"Địa chỉ";?>:</td>
                 <td class="Conts"><?php echo $user->diachi;?></td>
              </tr>
              <tr>
                 <td class="label"><?php echo $rear?"Joining date":"Ngày gia nhập";?>:</td>
                 <td class="Conts"><?php echo date('d/m/Y',strtotime($user->created))?></td>
              </tr>
           </tbody>
        </table>
     </div>
     <!-- begin button -->
     <div style="text-align: center;margin-top:10px">
        <a class="naptienbt2" href="<?php echo base_url();?>user/profile_update.html"><b><?php echo $rear?"Change":"Thay đổi";?></b></a>
     </div>
     <!-- end button -->
</div>
<?php }?>